package com.example.safeassistan.train.model;

import java.util.List;

public class ReportCardModel {

    /**
     * success : true
     * message : 操作成功！
     * code : 200
     * result : {"id":"1380699649794183163","totalScore":100,"maxScore":90,"qualifiedCount":3,"totalCount":4,"unCount":4,"historyList":[{"id":"6f3166336dc2428db5670c4f899d146d","paperMark":90,"paperResult":"合格","useTime":"00:30:00","answerTime":"2021-04-13 00:00:00"},{"id":"39b040e743934f749c4550d8ac49767d","paperMark":60,"paperResult":"不合格","useTime":"00:30:00","answerTime":"2021-04-13 00:00:00"},{"id":"a86dd863c2234adb8dc29c7a8b604021","paperMark":80,"paperResult":"合格","useTime":"00:30:00","answerTime":"2021-04-13 00:00:00"},{"id":"929b661f51e34d89adafac0ab9047dc0","paperMark":80,"paperResult":"合格","useTime":"00:30:00","answerTime":"2021-04-13 00:00:00"}]}
     * timestamp : 1618366503441
     */

    private Boolean success;
    private String message;
    private Integer code;
    private ResultDTO result;
    private Long timestamp;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultDTO {
        /**
         * id : 1380699649794183163
         * totalScore : 100
         * maxScore : 90
         * qualifiedCount : 3
         * totalCount : 4
         * unCount : 4
         * historyList : [{"id":"6f3166336dc2428db5670c4f899d146d","paperMark":90,"paperResult":"合格","useTime":"00:30:00","answerTime":"2021-04-13 00:00:00"},{"id":"39b040e743934f749c4550d8ac49767d","paperMark":60,"paperResult":"不合格","useTime":"00:30:00","answerTime":"2021-04-13 00:00:00"},{"id":"a86dd863c2234adb8dc29c7a8b604021","paperMark":80,"paperResult":"合格","useTime":"00:30:00","answerTime":"2021-04-13 00:00:00"},{"id":"929b661f51e34d89adafac0ab9047dc0","paperMark":80,"paperResult":"合格","useTime":"00:30:00","answerTime":"2021-04-13 00:00:00"}]
         */

        private String id;
        private Integer totalScore;
        private Integer maxScore;
        private Integer qualifiedCount;
        private Integer totalCount;
        private Integer unCount;
        private List<HistoryListDTO> historyList;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public Integer getTotalScore() {
            return totalScore;
        }

        public void setTotalScore(Integer totalScore) {
            this.totalScore = totalScore;
        }

        public Integer getMaxScore() {
            return maxScore;
        }

        public void setMaxScore(Integer maxScore) {
            this.maxScore = maxScore;
        }

        public Integer getQualifiedCount() {
            return qualifiedCount;
        }

        public void setQualifiedCount(Integer qualifiedCount) {
            this.qualifiedCount = qualifiedCount;
        }

        public Integer getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(Integer totalCount) {
            this.totalCount = totalCount;
        }

        public Integer getUnCount() {
            return unCount;
        }

        public void setUnCount(Integer unCount) {
            this.unCount = unCount;
        }

        public List<HistoryListDTO> getHistoryList() {
            return historyList;
        }

        public void setHistoryList(List<HistoryListDTO> historyList) {
            this.historyList = historyList;
        }

        public static class HistoryListDTO {
            /**
             * id : 6f3166336dc2428db5670c4f899d146d
             * paperMark : 90
             * paperResult : 合格
             * useTime : 00:30:00
             * answerTime : 2021-04-13 00:00:00
             */

            private String id;
            private Integer paperMark;
            private String paperResult;
            private String useTime;
            private String answerTime;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public Integer getPaperMark() {
                return paperMark;
            }

            public void setPaperMark(Integer paperMark) {
                this.paperMark = paperMark;
            }

            public String getPaperResult() {
                return paperResult;
            }

            public void setPaperResult(String paperResult) {
                this.paperResult = paperResult;
            }

            public String getUseTime() {
                return useTime;
            }

            public void setUseTime(String useTime) {
                this.useTime = useTime;
            }

            public String getAnswerTime() {
                return answerTime;
            }

            public void setAnswerTime(String answerTime) {
                this.answerTime = answerTime;
            }
        }
    }
}
